package com.tt.dp.decorator.test;

import com.tt.dp.decorator.beverage.Beverage;
import com.tt.dp.decorator.beverage.Espresso;
import com.tt.dp.decorator.condiment.Mocha;
import com.tt.dp.decorator.condiment.Soy;
import com.tt.dp.decorator.condiment.Whip;

public class StarbuzzCoffee {

    public static void main(String[] args) {

        Beverage espresso = new Espresso();

        System.out.println(espresso.getDescription() + ": cost is $" + espresso.cost());

        espresso = new Mocha(espresso);
        espresso = new Soy(espresso);
        espresso = new Whip(espresso);

        System.out.println(espresso.getDescription() + ": cost is $" + espresso.cost());
    }
}
